package PyroBots.Modele;

import java.io.DataOutput;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;

public class RobotSerialisablePourFlotte implements Serializable {
	
	private String nom;
	private Algo algo;
	private TypeRobot typeRobot;
	
	public RobotSerialisablePourFlotte(Robot robot){
		setNom(robot.getNom());
		setAlgo(robot.getAlgo());
		setTypeRobot(robot.getTypeRobot());
	}

	public void setTypeRobot(TypeRobot typeRobot) {
		this.typeRobot = typeRobot;
	}

	public TypeRobot getTypeRobot() {
		return typeRobot;
	}

	public void setAlgo(Algo algo) {
		this.algo = algo;
	}

	public Algo getAlgo() {
		return algo;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getNom() {
		return nom;
	}
}
